// Copyright 2012 The Glue BSF Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
 * @fileoverview Goog Closure Library helpers and Interfaces for the View and Controller
 */

goog.provide('glue.iView');
goog.provide('glue.iController')

/**
 * View Interface
 * @interface
 */
glue.iView = function(){};
glue.iView.prototype.setController = function(){};
glue.iView.prototype.getController = function(){};
glue.iView.prototype.ViewName = '';

/**
 * Controller Interface for Views
 * @interface
 */
glue.iController = function(){}
glue.iController.prototype.get = function(url,cb){}
glue.iController.prototype.post = function(url,data,cb){}
glue.iController.prototype.put = function(url,data,cb){}
glue.iController.prototype.del = function(url,data,cb){}
glue.iController.prototype.load = function(token){}
glue.iController.prototype.refresh = function(){}
glue.iController.prototype.revalidate = function(url){}


/** 
 * Should not be used if Closure Library is present use the base implementation.
 * 
 * @export
 * @public
 * @final 
 */
glue.inherits = goog.inherits;

/** 
 * Should not be used if Closure Library is present use the base implementation.
 * 
 * @export
 * @public
 * @final 
 */
glue.base = goog.base;
